Skip to main content

Antenna

The antenna component can be connected to a network port, and allows you to wirelessly send packets to other antennas with the same name.


Functions

getName

Antenna.getName()

Gets the name of the antenna.

Returns:

  • [ string ] The name of the antenna.

setName

Antenna.setName( name )

Sets the name of the antenna.

  • name [ string ] The new name of the antenna.

hasConnection

Antenna.hasConnection()

Returns true if there's a connection with another antenna.

Returns:

  • [ boolean ] True if it has a connection.

scanAntennas

Antenna.scanAntennas()

Gets all the antenna's of the entire world.

Returns:

  • [ string[] ] All discovered antennas.